package com.bcbim.model_server.component.mapper;

import com.bcbim.model_server_interface.component.dao.MComponentMaterialDAO;
import com.bcbim.model_server_interface.component.dto.ComponentMaterialDTO;
import com.bcbim.model_server_interface.component.vo.MaterialIndexVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 构件材质映射mapper
 * @Author: ye
 * @Date: 2022/4/6
 * @Version: V1.0
 **/
@Mapper
public interface ComponentMaterialMapper {

    /**
     * @Description: 新建材质面信息
     * @Param: List<MComponentMaterialDAO>
     * @Return: int
     * @Author: ye
     * @Date: 2022/3/28
     */
    int insertComponentMaterials(@Param("list") List<MComponentMaterialDAO> arrComponentMaterial);

    /**
     * @Description: 根据id查询构件材质索引
     * @Param: componentId
     * @Return: List<MaterialIndexVO>
     * @Author: ye
     * @Date: 2022/4/12
     */
    List<MaterialIndexVO> getComponentMashById(String componentId);

    /**
     * @Description: 批量查询构件mesh
     * @Param: componentIds
     * @Return: List<MaterialIndexVO>
     * @Author: ye
     * @Date: 2022/6/2
     */
    List<MaterialIndexVO> getArrComponentMashById(@Param("list") String[] componentIds);
}
